Skip to content

Comments

refactor: replace []byte(fmt.Sprintf) with fmt.Appendf#18603

Merged
AskAlexSharov merged 1 commit intoerigontech:mainfrom
oncecelll:use_fmtappendf_db
Jan 12, 2026
Merged

refactor: replace []byte(fmt.Sprintf) with fmt.Appendf#18603
AskAlexSharov merged 1 commit intoerigontech:mainfrom
oncecelll:use_fmtappendf_db

Conversation

@oncecelll
Copy link
Contributor

I modified the return statement to utilize fmt.Appendf instead of fmt.Sprintf for creating the formatted byte slice.

The resulting code is cleaner and more efficient, maintaining the same functionality while improving resource usage.

More info can see golang/go#47579

Signed-off-by: oncecelll <oncecell@outlook.com>
@AskAlexSharov AskAlexSharov merged commit 1862bfa into erigontech:main Jan 12, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants